<?php
require_once 'Db.php';
$server = "153.122.19.224";
$schema = "admage_sum";
$user = "super";
$password = "super123";

$tb = 'summary';
$where = " where buyer_id in (17897) or seller_id in (17896)" ;

$db = new Db($server, $schema, $user, $password);
$db->connect();
$tbList = $db->getTables($tb);

$cnt = count($tbList);

for ($i = 0; $i < $cnt; $i++) {
	$_cnt = $db->getCount($tbList[$i], $where);
	echo $db->_sql; echo "<br>";
	echo $tbList[$i] . ' : '. $_cnt ; echo "<br><br>";
}

$db->close();

?>
